package com.sanyang.pda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sanyang.pda.bean.CauseBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.projectbase.R;

import java.util.List;

public class QualityDetailAdapter extends BaseAdapter<CauseBean> {
    public QualityDetailAdapter(int layoutResId, @Nullable List<CauseBean> data) {
        super(layoutResId, data);
        addChildClickViewIds(R.id.iv_close);
    }

    @Override
    protected void convert(BaseViewHolder helper, CauseBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_num,item.getUnqualifiedNum()+"");
        helper.setText(R.id.tv_reason,item.getReason()+"");
    }
}
